//
//  QHConfig.h
//  QHAudioConverterMan
//
//  Created by Anakin chen on 2021/4/14.
//

#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
#import <AVFoundation/AVFoundation.h>

#define k_acc_t_48000       @"t"//48000,2
#define k_acc_video_44100   @"video"//44100,2

NS_ASSUME_NONNULL_BEGIN

@interface QHConfig : NSObject

@property (nonatomic, strong) NSString *acc_name;
@property (nonatomic) float sampleRate;
@property (nonatomic) int channels;

+ (instancetype)sharestanceWith:(NSString *)acc_name;
+ (instancetype)sharestance;

- (AudioStreamBasicDescription)createAACAduioDes;
- (AudioStreamBasicDescription)createPCMAduioDes;
- (AudioStreamBasicDescription)createPCMMonoAudioSBDes;

@end

NS_ASSUME_NONNULL_END
